Skip to content

ci: wait out npm's processing delay when publishing - #493

Merged
chrispader merged 1 commit into
mainfrom
ci/npm-staged-publish
Nov 13, 2026
Merged

chrispader merged 1 commit into
mainfrom
ci/npm-staged-publish

Conversation

@chrispader

Copy link
Copy Markdown
Member

npm keeps a newly published version hidden for a few minutes while it processes it. During the 11.0.0-nitro-v1.0 release, the publish step crashed when a registry request failed during that wait, after publishing the core package and before the vec package. Re-running the job then failed with E409 Cannot publish over previously staged version, because the core version still wasn't visible and npm refuses to publish it again until then.

The publish step now publishes every pending package before verifying any of them, so their processing delays overlap. Verification polls for up to 20 minutes and keeps going through registry and connection errors. A retry that gets the staged E409 for a package keeps going, and verification still has to confirm the version records the release commit. The publish job's timeout goes from 30 to 45 minutes to fit the longer wait.

🤖 Generated with Claude Code

npm hides a new version for several minutes while it processes it. The
publish step gave up when a registry request failed during that wait,
and a retry then failed with E409 because npm refuses to publish the
hidden version again. The step now publishes every package before
verifying them, retries registry errors for up to 20 minutes, and
accepts the E409 for a version that verification then confirms comes
from the release commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-nitro-sqlite Ready Ready Preview Nov 13, 2026 10:06am UTC

Request Review

@chrispader
chrispader merged commit 83e1fd6 into main Nov 13, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
Preview — 01be6a5f Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant